const path = require("path");
module.exports = {
  entry: {
    index: "./js/index"
  },
  output: {
    filename: "[name].js"
  },
  devtool: "source-map",
  resolve: {
    extensions: [".js"]
  },
  module: {
    rules: [{
      test: /\.js$/,
      use: {
        loader: "babel-loader",
        options: {
          presets: ["env"]
        }
      },
      exclude: path.join(__dirname + '/node_modules')

    }]
  }
}